<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>async的基本操作</title>
</head>
<body>
    <script>
       function test() { 
}
async function demo() { 
    return new Promise((resolve) => {
        resolve('hello world')
    })
}

async function demo2() {
    return "hello world"
}

console.log(demo2());
    </script>
    
</body>
</html>